gtk4.git
4 years agomeson: Do not enforce GStreamer EGL lib
Rafał Dzięgiel [Sat, 15 May 2021 06:52:36 +0000 (08:52 +0200)]
meson: Do not enforce GStreamer EGL lib

GStreamer EGL headers are handled by GstGL lib.
No need to additionally import them.

4 years agoMerge branch 'gst-x11-egl' into 'master'
Matthias Clasen [Fri, 14 May 2021 19:57:05 +0000 (19:57 +0000)]
Merge branch 'gst-x11-egl' into 'master'

gtkgstsink: Support EGL under x11

See merge request GNOME/gtk!3553

4 years agogtkgstsink: Support EGL under x11
Rafał Dzięgiel [Fri, 14 May 2021 17:25:23 +0000 (19:25 +0200)]
gtkgstsink: Support EGL under x11

Add support for EGL under x11 windowing system to GStreamer sink

4 years agoMerge branch 'ebassi/issue-3948' into 'master'
Matthias Clasen [Fri, 14 May 2021 10:50:59 +0000 (10:50 +0000)]
Merge branch 'ebassi/issue-3948' into 'master'

x11: Loosen the match for the NVIDIA driver

Closes #3948

See merge request GNOME/gtk!3549

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 14 May 2021 00:40:05 +0000 (00:40 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

inspector: Use new get_egl_display apis

See merge request GNOME/gtk!3546

4 years agoMerge branch 'offscreen-fixes' into 'master'
Matthias Clasen [Fri, 14 May 2021 00:38:52 +0000 (00:38 +0000)]
Merge branch 'offscreen-fixes' into 'master'

Add some more transform tests

See merge request GNOME/gtk!3551

4 years agoImprove transformed offscreen rendering
Matthias Clasen [Thu, 13 May 2021 21:32:52 +0000 (17:32 -0400)]
Improve transformed offscreen rendering

Preserve the scale for 2D transforms to
avoid a pixellated appearance.

4 years agoAdd some more transform tests
Matthias Clasen [Thu, 13 May 2021 10:47:46 +0000 (06:47 -0400)]
Add some more transform tests

Test that gsk_transform_to_affine works.

4 years agotestzoom: Fix the in-place rotate
Matthias Clasen [Thu, 13 May 2021 22:58:34 +0000 (18:58 -0400)]
testzoom: Fix the in-place rotate

4 years agoinspector: Use new get_egl_display apis
Matthias Clasen [Wed, 12 May 2021 19:57:33 +0000 (15:57 -0400)]
inspector: Use new get_egl_display apis

This makes the code a bit more concise.

Also, get WGL information when we are using it.

4 years agox11: Pair eglInitialize with eglTerminate
Emmanuele Bassi [Thu, 13 May 2021 17:23:50 +0000 (18:23 +0100)]
x11: Pair eglInitialize with eglTerminate

If we bail out after EGL initialization we want to go back to a stable
state and not leave EGL hanging.

4 years agox11: Loosen the match for the NVIDIA driver
Emmanuele Bassi [Thu, 13 May 2021 17:22:30 +0000 (18:22 +0100)]
x11: Loosen the match for the NVIDIA driver

It seems nVidia puts a different string in the GL_VENDOR than the one it
uses for GLX.

4 years agoMerge branch 'ebassi/boost-url' into 'master'
Emmanuele Bassi [Thu, 13 May 2021 11:47:28 +0000 (11:47 +0000)]
Merge branch 'ebassi/boost-url' into 'master'

Update the URL for the Boost archive

See merge request GNOME/gtk!3548

4 years agoUpdate the URL for the Boost archive
Emmanuele Bassi [Thu, 13 May 2021 10:29:22 +0000 (11:29 +0100)]
Update the URL for the Boost archive

The old URL seems to have failed, and now it returns 301.

Use the URL from the Boost website.

4 years agoMerge branch 'fix-picking-with-transforms' into 'master'
Matthias Clasen [Thu, 13 May 2021 10:09:37 +0000 (10:09 +0000)]
Merge branch 'fix-picking-with-transforms' into 'master'

Fix picking with transforms

See merge request GNOME/gtk!3547

4 years agoAdd a transform test
Matthias Clasen [Thu, 13 May 2021 01:50:32 +0000 (21:50 -0400)]
Add a transform test

This reveals some issues with scale handling.

4 years agoFix picking with transforms
Matthias Clasen [Thu, 13 May 2021 00:53:41 +0000 (20:53 -0400)]
Fix picking with transforms

When transforms include scales, we weren't picking
children properly. The special-case in gtk_widget_do_pick
only applies to 2D translations.

4 years agoMerge branch 'ebassi/issue-3945' into 'master'
Emmanuele Bassi [Wed, 12 May 2021 20:12:13 +0000 (20:12 +0000)]
Merge branch 'ebassi/issue-3945' into 'master'

docs: Fix indentation of the arguments

Closes #3945

See merge request GNOME/gtk!3544

4 years agoMerge branch 'wip/chergert/fix-gi-typo' into 'master'
Matthias Clasen [Wed, 12 May 2021 18:43:33 +0000 (18:43 +0000)]
Merge branch 'wip/chergert/fix-gi-typo' into 'master'

gdk: fix typo in G-I attribute

See merge request GNOME/gtk!3545

4 years agoMerge branch 'win32.egl.getter' into 'master'
Matthias Clasen [Wed, 12 May 2021 18:42:35 +0000 (18:42 +0000)]
Merge branch 'win32.egl.getter' into 'master'

Win32: Add EGLDisplay getter

See merge request GNOME/gtk!3543

4 years agogdk: fix typo in G-I attribute
Christian Hergert [Wed, 12 May 2021 17:53:56 +0000 (10:53 -0700)]
gdk: fix typo in G-I attribute

4 years agodocs: Fix indentation of the arguments
Emmanuele Bassi [Wed, 12 May 2021 16:38:07 +0000 (17:38 +0100)]
docs: Fix indentation of the arguments

The indentation of new lines inside documentation blurbs must be smaller
than 4 spaces, otherwise the Markdown parser will consider the line to
be part of a pre-formatted code block.

Fixes: #3945
4 years agoWin32: Add EGLDisplay getter
Chun-wei Fan [Wed, 12 May 2021 11:29:05 +0000 (19:29 +0800)]
Win32: Add EGLDisplay getter

Like what was done for Wayland and X11, add an API to retrieve the EGLDisplay
if one is being used in place of WGL.

4 years agoMerge branch 'ebassi/egl-display-get' into 'master'
Matthias Clasen [Tue, 11 May 2021 12:42:50 +0000 (12:42 +0000)]
Merge branch 'ebassi/egl-display-get' into 'master'

Add backend-specific getter for the EGLDisplay

See merge request GNOME/gtk!3542

4 years agowayland: Add EGLDisplay getter
Emmanuele Bassi [Tue, 11 May 2021 11:26:55 +0000 (12:26 +0100)]
wayland: Add EGLDisplay getter

Getting an EGLDisplay object is messy; might as well expose the function
we use internally to save some time, just like we did for the X11
backend.

4 years agox11: Add EGLDisplay getter
Emmanuele Bassi [Tue, 11 May 2021 11:25:38 +0000 (12:25 +0100)]
x11: Add EGLDisplay getter

Getting an EGLDisplay object is messy; might as well expose the function
we use internally to save some time.

4 years agobuild: Do not use C arguments with C++
Emmanuele Bassi [Tue, 11 May 2021 11:24:34 +0000 (12:24 +0100)]
build: Do not use C arguments with C++

Otherwise the C++ compiler will start to complain.

The C++ keyword test does not need additional warnings.

4 years agoMerge branch 'misc-inspector-things' into 'master'
Matthias Clasen [Tue, 11 May 2021 10:51:31 +0000 (10:51 +0000)]
Merge branch 'misc-inspector-things' into 'master'

inspector: Show text direction

See merge request GNOME/gtk!3541

4 years agoinspector: Avoid a crash with GL variants
Matthias Clasen [Tue, 11 May 2021 01:25:08 +0000 (21:25 -0400)]
inspector: Avoid a crash with GL variants

When configuring the inspector display, preserve
debug flags that affect which GL variant we pick.
Otherwise, we may end up with a GLX context on the
default display, and an EGL context on the inspector
one. This hopelessly confuses libepoxy, and things
don't go well when that happens.

4 years agoinspector: Show EGL info for X11 as well
Matthias Clasen [Tue, 11 May 2021 01:24:50 +0000 (21:24 -0400)]
inspector: Show EGL info for X11 as well

4 years agoinspector: Show text direction
Matthias Clasen [Tue, 11 May 2021 00:55:43 +0000 (20:55 -0400)]
inspector: Show text direction

This is not a property, so show it on the misc tab.

4 years agoMerge branch 'ebassi/egl-x11' into 'master'
Emmanuele Bassi [Mon, 10 May 2021 22:51:11 +0000 (22:51 +0000)]
Merge branch 'ebassi/egl-x11' into 'master'

Prefer EGL to GLX for the GL support on X11

See merge request GNOME/gtk!3540

4 years agox11: Don't update GLX visuals with EGL
Emmanuele Bassi [Mon, 10 May 2021 20:19:14 +0000 (21:19 +0100)]
x11: Don't update GLX visuals with EGL

We're going to get into a messy situation, with both GLX and EGL
initialized.

If we're already using EGL, skip the whole cache.

4 years agoMerge branch 'broadway-display-scale' into 'master'
Matthias Clasen [Mon, 10 May 2021 20:11:38 +0000 (20:11 +0000)]
Merge branch 'broadway-display-scale' into 'master'

broadway: Add a setter for display scale

Closes #3934

See merge request GNOME/gtk!3538

4 years agox11: Always fall back to GLX on NVIDIA
Emmanuele Bassi [Mon, 10 May 2021 19:37:13 +0000 (20:37 +0100)]
x11: Always fall back to GLX on NVIDIA

At least until we can guarantee that EGL-X11 works fine there.

4 years agox11: Move the damage fences into the GLX code
Emmanuele Bassi [Mon, 10 May 2021 19:33:02 +0000 (20:33 +0100)]
x11: Move the damage fences into the GLX code

It's GLX-specific anyway, there's no need to complicate things by having
half the code in the generic path, and half in the GLX one.

4 years agox11: Add debug toggle for preferring GLX
Emmanuele Bassi [Mon, 10 May 2021 17:36:32 +0000 (18:36 +0100)]
x11: Add debug toggle for preferring GLX

Mostly as a way to compare the EGL and GLX implementations.

4 years agox11: Add profiler marks for SwapBuffers
Emmanuele Bassi [Mon, 10 May 2021 17:22:34 +0000 (18:22 +0100)]
x11: Add profiler marks for SwapBuffers

4 years agox11: Use EGL for GL support
Emmanuele Bassi [Mon, 10 May 2021 17:11:05 +0000 (18:11 +0100)]
x11: Use EGL for GL support

This makes the X11 backend similar to the Wayland one, when it comes to
OpenGL.

Fall back to GLX only if EGL support is not available.

4 years agox11: Decouple GLX from GdkX11GLContext
Emmanuele Bassi [Mon, 10 May 2021 14:07:08 +0000 (15:07 +0100)]
x11: Decouple GLX from GdkX11GLContext

If we want to add an EGL implementation for the X11 backend, we are
going to need to move the GLX bits into their own class. The first step
is to declare GdkX11GLContext as an abstract type, and then subclass it
into a GdkX11GLContextGLX type, which includes the whole GLX
implementation.

4 years agoinspector: Support scale changes on Broadway
Matthias Clasen [Mon, 10 May 2021 14:55:41 +0000 (10:55 -0400)]
inspector: Support scale changes on Broadway

4 years agoMerge branch 'ci-more-clang' into 'master'
Matthias Clasen [Mon, 10 May 2021 13:26:54 +0000 (13:26 +0000)]
Merge branch 'ci-more-clang' into 'master'

ci: Add clang-extra-tools to the image

See merge request GNOME/gtk!3539

4 years agoci: Add clang-extra-tools to the image
Matthias Clasen [Mon, 10 May 2021 12:51:37 +0000 (08:51 -0400)]
ci: Add clang-extra-tools to the image

Hurray for bite-size packages! Splitting
this off broke our style check in ci.

4 years agobroadway: Add a setter for display scale
Matthias Clasen [Sun, 9 May 2021 23:42:42 +0000 (19:42 -0400)]
broadway: Add a setter for display scale

This is useful when using Broadway as a headless
display server.

Fixes: #3934
4 years agoCosmetics
Matthias Clasen [Sun, 9 May 2021 23:32:36 +0000 (19:32 -0400)]
Cosmetics

4 years agoMerge branch 'file-replace-trap' into 'master'
Matthias Clasen [Sun, 9 May 2021 23:06:49 +0000 (23:06 +0000)]
Merge branch 'file-replace-trap' into 'master'

print-editor: Fix saving

See merge request GNOME/gtk!3536

4 years agoMerge branch 'wip/exalm/image-button' into 'master'
Matthias Clasen [Sun, 9 May 2021 23:06:25 +0000 (23:06 +0000)]
Merge branch 'wip/exalm/image-button' into 'master'

Ensure consistent header bar buttons in the demo and tests

See merge request GNOME/gtk!3537

4 years agotest: Ensure .image-button on header bar buttons
Alexander Mikhaylenko [Sun, 9 May 2021 15:53:40 +0000 (20:53 +0500)]
test: Ensure .image-button on header bar buttons

4 years agodemo: Ensure .image-button on header bar buttons
Alexander Mikhaylenko [Sun, 9 May 2021 15:53:05 +0000 (20:53 +0500)]
demo: Ensure .image-button on header bar buttons

4 years agotest: Use more appropriate back/forward icons
Alexander Mikhaylenko [Sun, 9 May 2021 15:52:48 +0000 (20:52 +0500)]
test: Use more appropriate back/forward icons

4 years agodemo: Use more appropriate back/forward icons
Alexander Mikhaylenko [Sun, 9 May 2021 15:35:39 +0000 (20:35 +0500)]
demo: Use more appropriate back/forward icons

4 years agoinspector: Fix saving css
Matthias Clasen [Sun, 9 May 2021 15:17:48 +0000 (11:17 -0400)]
inspector: Fix saving css

g_file_replace_contents() does not accept -1
as length, unlike similar apis.

4 years agoprint-editor: Fix saving
Matthias Clasen [Sun, 9 May 2021 15:16:52 +0000 (11:16 -0400)]
print-editor: Fix saving

g_file_replace_contents() does not accept -1 as
length, unlike similar apis.

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sun, 9 May 2021 14:43:03 +0000 (14:43 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

fontbutton: Quote font family names

See merge request GNOME/gtk!3534

4 years agoMerge branch 'wip/exalm/actionbar' into 'master'
Matthias Clasen [Sun, 9 May 2021 14:40:19 +0000 (14:40 +0000)]
Merge branch 'wip/exalm/actionbar' into 'master'

GtkActionBar spacing fixes

See merge request GNOME/gtk!3535

4 years agotheme: Fix GtkActionBar spacing
Alexander Mikhaylenko [Sun, 9 May 2021 12:01:36 +0000 (17:01 +0500)]
theme: Fix GtkActionBar spacing

4 years agoactionbar: Fix the css node docs
Alexander Mikhaylenko [Sun, 9 May 2021 11:55:48 +0000 (16:55 +0500)]
actionbar: Fix the css node docs

4 years agoaction-bar: Add start and end style classes to GtkActionBar boxes
Alexander Mikhaylenko [Sun, 9 May 2021 11:54:59 +0000 (16:54 +0500)]
action-bar: Add start and end style classes to GtkActionBar boxes

Make it possible to add spacing to them from the theme without affecting
the center child should it happen to be a box.

4 years agofontbutton: Quote font family names
Matthias Clasen [Sun, 9 May 2021 00:53:44 +0000 (20:53 -0400)]
fontbutton: Quote font family names

Otherwise, spaces in family names will trip up
the css parser.

4 years agoMerge branch 'emoji-full-locale' into 'master'
Matthias Clasen [Sat, 8 May 2021 02:07:18 +0000 (02:07 +0000)]
Merge branch 'emoji-full-locale' into 'master'

emoji: Try to load emoji data using both language and territory

See merge request GNOME/gtk!3531

4 years agoMerge branch 'wip/carlosg/map-emulated-moveresize-window' into 'master'
Matthias Clasen [Fri, 7 May 2021 14:55:16 +0000 (14:55 +0000)]
Merge branch 'wip/carlosg/map-emulated-moveresize-window' into 'master'

gdk/x11: Ensure to map the non-ewmh moveresize emulation window before use

See merge request GNOME/gtk!3529

4 years agoemoji: Try to load emoji data using both language and territory
Marco Trevisan (Treviño) [Fri, 7 May 2021 14:03:37 +0000 (16:03 +0200)]
emoji: Try to load emoji data using both language and territory

When loading the emoji data we just try to get the data for a language
while there may be territory specializations and emojibase provides
them.

So, split the loading function and try to load the data for the fully
defined language string (i.e. `it-ch`) before loading the generic one
for the language (i.e. `it`) and eventually falling back to the generic
english.

4 years agogdk/x11: Ensure to map the non-ewmh moveresize emulation window before use
Carlos Garnacho [Fri, 7 May 2021 13:51:52 +0000 (15:51 +0200)]
gdk/x11: Ensure to map the non-ewmh moveresize emulation window before use

Otherwise, we don't deem it as able to be grabbed, which we intend to do
immediately after.

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 7 May 2021 12:57:55 +0000 (12:57 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Add some calendar tests

See merge request GNOME/gtk!3528

4 years agoAdd some calendar tests
Matthias Clasen [Fri, 7 May 2021 11:43:19 +0000 (07:43 -0400)]
Add some calendar tests

Check that the getters and setters work as documented.

This tests the fix in 1f8985e47623421.

4 years agoMerge branch 'carlosgc/calendar-day' into 'master'
Matthias Clasen [Fri, 7 May 2021 11:42:59 +0000 (11:42 +0000)]
Merge branch 'carlosgc/calendar-day' into 'master'

calendar: value of day property is shifted by 1

See merge request GNOME/gtk!3524

4 years agoMerge branch 'fix-3918' into 'master'
Matthias Clasen [Fri, 7 May 2021 11:08:57 +0000 (11:08 +0000)]
Merge branch 'fix-3918' into 'master'

demos: Mark non-static signal handler symbols for export

Closes #3918

See merge request GNOME/gtk!3523

4 years agoMerge branch 'update-emoji-data' into 'master'
Matthias Clasen [Fri, 7 May 2021 11:05:46 +0000 (11:05 +0000)]
Merge branch 'update-emoji-data' into 'master'

emoji: Update data to CLRD v39

See merge request GNOME/gtk!3520

4 years agocalendar: do not allow to set 0 as day
Carlos Garcia Campos [Fri, 7 May 2021 10:13:49 +0000 (12:13 +0200)]
calendar: do not allow to set 0 as day

We no longer unselect the current day when 0 is set, so update the
documentation and the property definition.

4 years agocalendar: value of day property is shifted by 1
Carlos Garcia Campos [Fri, 7 May 2021 09:10:36 +0000 (11:10 +0200)]
calendar: value of day property is shifted by 1

The day is a number between 1 and 31 and that's what we get from
GDateTime.

4 years agodemos: Mark non-static signal handler symbols for export
Chun-wei Fan [Thu, 6 May 2021 09:21:46 +0000 (17:21 +0800)]
demos: Mark non-static signal handler symbols for export

The symbols in the .ui files for the signal handlers and functions must be
exported so that the system can pick them up during execution.

Fixes #3918.

4 years agoMerge branch 'hidden-mnemonics-fix' into 'master'
Matthias Clasen [Fri, 7 May 2021 00:34:33 +0000 (00:34 +0000)]
Merge branch 'hidden-mnemonics-fix' into 'master'

label: Make hidden mnemonics work again

See merge request GNOME/gtk!3518

4 years agoMerge branch 'emoji-data-prefix-fix' into 'master'
Matthias Clasen [Thu, 6 May 2021 15:33:15 +0000 (15:33 +0000)]
Merge branch 'emoji-data-prefix-fix' into 'master'

emoji: Use a portable and configuration-dependent path to load the data

See merge request GNOME/gtk!3522

4 years agoMerge branch 'macos' into 'master'
Matthias Clasen [Thu, 6 May 2021 15:26:49 +0000 (15:26 +0000)]
Merge branch 'macos' into 'master'

Fix building both X11 and Quartz backends on macOS

See merge request GNOME/gtk!3508

4 years agoemoji: remove duplicated include
Marco Trevisan (Treviño) [Thu, 6 May 2021 13:34:30 +0000 (15:34 +0200)]
emoji: remove duplicated include

4 years agoemoji: Use a portable and configuration-dependent path to load the data
Marco Trevisan (Treviño) [Thu, 6 May 2021 13:32:44 +0000 (15:32 +0200)]
emoji: Use a portable and configuration-dependent path to load the data

Load the emojis data in all the platforms, respecting the configured
GTK_DATA_PREFIX

4 years agoFix compilation of c++ test: cpp_args
Dan Cîrnaț [Tue, 4 May 2021 11:52:21 +0000 (13:52 +0200)]
Fix compilation of c++ test: cpp_args

The correct meson argument for c++ is cpp_args.
Remove unnecessary(?) "-Idummy-headers" - breaks build

4 years agoOnly compile gtkmountoperation-stub if the X11 backend is not enabled
Dan Cîrnaț [Tue, 4 May 2021 11:51:35 +0000 (13:51 +0200)]
Only compile gtkmountoperation-stub if the X11 backend is not enabled

4 years agoConditional check for gdesktopappinfo header
Dan Cîrnaț [Tue, 4 May 2021 11:49:45 +0000 (13:49 +0200)]
Conditional check for gdesktopappinfo header

GDesktopAppInfo is not available on macOS and needs to be disabled

4 years agoemoji: Update data to CLRD v39
Marco Trevisan (Treviño) [Thu, 6 May 2021 02:59:04 +0000 (04:59 +0200)]
emoji: Update data to CLRD v39

This is based on version 6.2.0 of emojibase, containing CLRD 39

http://cldr.unicode.org/index/downloads/cldr-39
https://github.com/milesj/emojibase/blob/b3c9a78/packages/data/CHANGELOG.md

4 years agolabel: Make hidden mnemonics work again
Matthias Clasen [Thu, 6 May 2021 02:53:52 +0000 (22:53 -0400)]
label: Make hidden mnemonics work again

The change in 875a92b95f12dadd6 made labels strip
out underlines earlier, but overlooked that this made
mnemonics not work before the timeout to show them
has passed. That was unintentional. Make mnemonics
work regardless of their visibility, again.

4 years agoMerge branch 'introspection-test' into 'master'
Matthias Clasen [Thu, 6 May 2021 00:52:06 +0000 (00:52 +0000)]
Merge branch 'introspection-test' into 'master'

Add an introspection api test

See merge request GNOME/gtk!3514

4 years agoAdd an introspection api test
Matthias Clasen [Wed, 5 May 2021 00:39:52 +0000 (20:39 -0400)]
Add an introspection api test

Every beginning is small... just check one constant for now.

4 years agoMerge branch 'update-ci-to-f34' into 'master'
Matthias Clasen [Wed, 5 May 2021 23:17:07 +0000 (23:17 +0000)]
Merge branch 'update-ci-to-f34' into 'master'

WIP ci: Update the image to Fedora 34

See merge request GNOME/gtk!3516

4 years agoMerge branch 'msvc-ci' into 'master'
Matthias Clasen [Wed, 5 May 2021 23:16:39 +0000 (23:16 +0000)]
Merge branch 'msvc-ci' into 'master'

ci: Add MSVC build

See merge request GNOME/gtk!3486

4 years agoConfine -mf16c to a single source file
Matthias Clasen [Wed, 5 May 2021 22:58:23 +0000 (18:58 -0400)]
Confine -mf16c to a single source file

We can't use this flag for any code that may get run
outside the __builtin_cpu_supports() check, and meson
doesn't allow per-file cflags. So we have to split this
code off into its own static library.

4 years agoMeson: gdk-pixbuf jpeg/png options changed to feature
Xavier Claessens [Wed, 5 May 2021 20:40:57 +0000 (16:40 -0400)]
Meson: gdk-pixbuf jpeg/png options changed to feature

4 years agoci: Add pygobject to the images
Matthias Clasen [Wed, 5 May 2021 20:31:03 +0000 (16:31 -0400)]
ci: Add pygobject to the images

This will let us add introspection tests in the future.

4 years agoci: Show OS release for our containers
Matthias Clasen [Wed, 5 May 2021 20:22:32 +0000 (16:22 -0400)]
ci: Show OS release for our containers

4 years agoAdd debug spew to gdk tests
Matthias Clasen [Wed, 5 May 2021 19:41:46 +0000 (15:41 -0400)]
Add debug spew to gdk tests

4 years agoMerge branch 'wl-phys-transform' into 'master'
Matthias Clasen [Wed, 5 May 2021 15:23:26 +0000 (15:23 +0000)]
Merge branch 'wl-phys-transform' into 'master'

gdk/wayland: Take transform into account when setting physical size

See merge request GNOME/gtk!3515

4 years agoci: Add MSVC build
Xavier Claessens [Thu, 29 Apr 2021 15:09:04 +0000 (11:09 -0400)]
ci: Add MSVC build

This script is copied from glib CI.

4 years agogdk/wayland: Take transform into account when setting physical size
Guido Günther [Wed, 5 May 2021 11:59:26 +0000 (13:59 +0200)]
gdk/wayland: Take transform into account when setting physical size

Width and height of a GdkMonitor are derived via wl_output which
talks about physical dimensions of a device and compositors usually
implement this as the untransformed values (e.g. weston, wlroots).

Since the GTK client has no way to figure out if a monitor was rotated,
transform the physical dimensions according to the applied wayland
transform to have the physical dimensions match the logical ones.

Mutter flips the physical dimensions itself but doesn't announce the
transform so this shouldn't break anything there.

4 years agoDisable another font-challenged reftest
Matthias Clasen [Sun, 2 May 2021 01:02:08 +0000 (21:02 -0400)]
Disable another font-challenged reftest

4 years agoHelp the compiler out
Matthias Clasen [Sun, 2 May 2021 00:21:54 +0000 (20:21 -0400)]
Help the compiler out

gcc says: error: iteration 2147483649 invokes undefined behavior
                            [-Werror=aggressive-loop-optimizations]
which of course, never happens because ncols is always >= 2.
Add some assertions to tell the compiler.

4 years agoci: Update the image to Fedora 34
Matthias Clasen [Sat, 1 May 2021 23:56:23 +0000 (19:56 -0400)]
ci: Update the image to Fedora 34

This is in preparation to using mutter --headless
for tests.

4 years agoMerge branch 'bilelmoussaoui/trick-gir-list-position' into 'master'
Matthias Clasen [Wed, 5 May 2021 00:04:16 +0000 (00:04 +0000)]
Merge branch 'bilelmoussaoui/trick-gir-list-position' into 'master'

gtk: trick g-ir scanner to add INVALID_LIST_POSITION

See merge request GNOME/gtk!3513

4 years agogtk: trick g-ir scanner to add INVALID_LIST_POSITION
Bilal Elmoussaoui [Tue, 4 May 2021 21:33:41 +0000 (21:33 +0000)]
gtk: trick g-ir scanner to add INVALID_LIST_POSITION

without it, the define doesn't get picked in the introspection data

4 years agoMerge branch 'wip/exalm/text-handles' into 'master'
Matthias Clasen [Tue, 4 May 2021 21:40:48 +0000 (21:40 +0000)]
Merge branch 'wip/exalm/text-handles' into 'master'

texthandle: Add a contents css node

Closes #3475

See merge request GNOME/gtk!3511

4 years agoMerge branch 'fix-reftest' into 'master'
Matthias Clasen [Tue, 4 May 2021 21:03:30 +0000 (21:03 +0000)]
Merge branch 'fix-reftest' into 'master'

Fix the icon-effect-missing reftest

See merge request GNOME/gtk!3512